package com.derbysoft.lowcostadapter.commons.redis.service.impl;

/**
 * Created by: jason
 * Date: 2012-08-14
 */
public final class HSetEntity {
    private String key;
    private String field;
    private String value;
    private Long expireTime;

    private HSetEntity(String key, String field, String value, Long expireTime) {
        this.key = key;
        this.field = field;
        this.value = value;
        this.expireTime = expireTime;
    }

    public static HSetEntity build(String key, String field, String value, Long expireTime) {
        return new HSetEntity(key, field, value, expireTime);
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
